﻿@using rateITcd.Models
@model LoginViewModel
@{
    ViewBag.Title = "Log in";
}


        <section id="loginForm">
@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    @Html.AntiForgeryToken()


                            <div class="container" style="margin-top:30px">
                                @Html.ValidationSummary(true, "", new { @class = "alert alert-danger" })
                                <div class="col-md-4 col-md-push-4">
                                    <div class="panel panel-default">
                                        <div class="panel-heading"><h3 class="panel-title"><strong>Sign In </strong></h3></div>
                                        <div class="panel-body" style="padding-left:35px">


                                                <div class="form-group">
                                                    @Html.LabelFor(m => m.Email)
                                                    @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
                                                    @Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" })
                                                </div>
                                                <div class="form-group">
                                                    @Html.LabelFor(m => m.Password)
                                                    @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                                                    @Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" })
                                                </div>
                                                <div class="form-group">
                                                    @Html.CheckBoxFor(m => m.RememberMe)
                                                    @Html.LabelFor(m => m.RememberMe)
                                                </div>
                                        </div>
                                    <div class="panel-footer">                                        
                                        <button type="submit" class="btn btn-sm btn-default">Sign in</button>
                                    </div>
                                    </div>
                                    <p style="text-align:center">
                                        @Html.ActionLink("Register as a new user", "Register")
                                         | 
                                        @Html.ActionLink("Forgot your password?", "ForgotPassword")
                                    </p>

                                </div>
                                </div>
}

</section>


